package com.j2eefast.bussiness.contract.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>设备规范分类</p>
 *
 * @author: summer
 * @date: 2021-06-09 10:41
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
@Data
@TableName("bus_standard")
public class BusStandardEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    protected Long id;

    @TableField(exist = false)
    protected String  parentName;
    //父类
    @TableField(value = "parent_id")
    protected Long parentId;
    //标准名字
    @TableField(value = "standard_name")
    protected String standardName;

//    //标准名字
//    @TableField(value = "parent_name")
//    protected String parentName;



    //备注
    @TableField(value = "remark")
    protected String remark;
    //创建日期
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date createTime;
    //更新日期
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date updateTime;
    //创建人
    @TableField(value = "create_by")
    protected String createBy;
    //更新人
    @TableField(value = "update_by")
    protected String updateBy;

    @Override
    public String toString() {
        return super.toString();
    }
}
